# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-icu
_pyname=PyICU
pkgver=2.7.4
pkgrel=4
pkgdesc="Python3 binding for ICU"
url="https://pypi.org/project/PyICU/"
arch="all"
license="MIT"
makedepends="py3-setuptools python3-dev icu-dev"
source="https://files.pythonhosted.org/packages/source/P/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver

replaces="py-icu" # Backwards compatibility
provides="py-icu=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
b1252f04c162525b607f28704629389a0765961eb3b8d8c7e67a141f9ecbe6d420cfdd043bc945134db8df550cd58316c08a3ac9c30192e04b0710ad2bc21c1d  PyICU-2.7.4.tar.gz
"
